﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EnergyCalcEdit.aspx.cs" Inherits="BaseData_EnergyCalcEdit" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>基础数据类别维护</title>
    <base target ="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
	<!--#include file="../Js/KeyControl.js"-->
	<script src="../JS/calendar.js" type ="text/javascript"></script> 
   
	<script language="javascript" type="text/javascript">   
			  
      function BtnSubmit()
      {
          var sname = form1.txtName.value;
          var seh = form1.txtEnergyHot.value;
          var sep = form1.txtEnergyProportion.value;

          if (sname == "")
          {
              form1.txtName.focus();
              alert("能源名称不能为空！");
              return;
          }

          if (seh == "")
          {
              form1.txtEnergyHot.focus();
              alert("平均低位发热量不能为空！");
              return;
          }

          if (sep == "") {
              form1.txtEnergyProportion.focus();
              alert("折标准煤系数不能为空！");
              return;
          }
          
          var btnSave=window.document.getElementById("SaveData");
		      if(btnSave!=null)
		         btnSave.click();
      }

			
    </script> 
</head>
<body style =" background-image :url('../images/hit_bg.gif');"> 
	<% 
		Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
		Response.Expires = 0;
		Response.CacheControl = "no-cache";
	%>
    <form id="form1" runat="server">
<table style ="width :98%;"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr style ="height :6;">
    <td></td>
 </tr> 
</table>     

<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
	<tr  style ="background-color :#F9F9FB; height :25;">
		<td align ="right">&nbsp;<strong>能源名称：</strong></td>
		<td>&nbsp;<asp:textbox id="txtName" runat="server" CssClass="TextBox" MaxLength="10"  TabIndex="1"></asp:textbox></td>
	</tr>
	<tr style ="background-color :#F9F9FB; height :25;">
		<td align ="right">&nbsp;<strong>平均低位发热量：</strong></td>
		<td>&nbsp;<asp:textbox id="txtEnergyHot" runat="server" CssClass="TextBox" MaxLength="50" TabIndex="2"></asp:textbox><font color="#ff0000">*</font></td>
	</tr>
	<tr style ="background-color :#F9F9FB; height :25;">
		<td align ="right">&nbsp;<strong>折标准煤系数：</strong></td>
		<td>&nbsp;<asp:textbox id="txtEnergyProportion" runat="server" CssClass="TextBox" MaxLength="50" TabIndex="2"></asp:textbox><font color="#ff0000">*</font></td>
	</tr>
	<tr style ="height :30;background-color :#F9F9FB">
	  <td></td>
	  <td>
	    <input id="SaveData" type="button" style ="width :0; height :0;" class ="button02" runat ="server" value ="提交" onserverclick="SaveData_ServerClick"  />
	    <input type="button" id="Button1" value="提交" class="button02" onclick="BtnSubmit();" />
	    <input type="button" id="Button2" value="退出" class="button02" onclick="window.close();" /></td>
	</tr>
</table>
    </form>
</body>
</html>